display date time twig

147

display date time twig -

// date
{{ post.published_at|date("m/d/Y") }}

// date time
{{ post.published_at|date('Y-m-d H:i:s') }}

Comments

Submit
0 Comments